package com.javapub.flowable.myflowable.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javapub.flowable.myflowable.pojo.Device;
import com.javapub.flowable.myflowable.pojo.Device02;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;

@Mapper
public interface DeviceMapper extends BaseMapper<Device>{

    /**
     * @return
     */
    List<Device> selectPartnerId(String s, Integer pageNum, Integer pageSize);

    @Results({
            @Result(column = "serial_number",property = "serialNumber"),
            @Result(column = "seal_type",property = "sealType")
    })
    List<Device> selectList(List<String> id);

    @Result(column = "device_id",property = "deviceId")
    List<Device> queryDevice(@Param("device02") Device02 device02);

    void queryCount(@Param("device") Device device);


    Integer selectDevice();
}
